<?php
$username = $_REQUEST['username'];

if (!empty($username)){
    echo json_encode(array('success'=>true));
} else {
    echo json_encode(array('msg'=>'Some errors occured.'));
}
?>
